<PAGE>

                                                                    EXHIBIT 10.7

                               KOMAG, INCORPORATED

                            DISCRETIONARY BONUS PLAN

                             I. PURPOSES OF THE PLAN

1.01 Komag, Incorporated (the "Company") hereby establishes this Discretionary
Bonus Plan ("Plan") as an incentive program pursuant to which discretionary or
other retention-based bonuses may be awarded for one or more fiscal years in
order to retain the services of those employees critical to the Company's
financial success.

1.02 The Company's compensation programs are designed to retain and motivate
staff through the delivery of competitive cash compensation each year.
Accordingly, the Compensation Committee of the Company's Board of Directors as
plan administrator shall, with the assistance of the Company's management and
such outside compensation specialists as the Compensation Committee may deem
appropriate, undertake a competitive analysis for each fiscal year the Plan
remains in effect. If the analysis for any fiscal year suggests that the level
of cash compensation for that year does not adequately reflect the achievements
of the participants during the plan year, the Company's Board of Directors,
through the Compensation Committee of the Board, may establish a separate bonus
pool to reward those who contributed to the Company's performance. The bonus
distribution will be targeted to those employees considered essential to the
Company's continued financial success who would otherwise be vulnerable to
competitor recruiting by offers of more attractive compensation.

                         II. ADMINISTRATION OF THE PLAN

2.01 The Plan is hereby adopted by the Company's Board of Directors (the
"Board"), effective January 31, 2005, and shall be administered by the
Compensation Committee ("Committee") of the Board.

2.02 The interpretation and construction of the Plan and the adoption of rules
and regulations for administering the Plan shall be made by the Committee.
Decisions of the Committee shall be final and binding on all parties who have an
interest in the Plan.

                          III. DISCRETIONARY BONUS POOL

3.01 The Committee shall make an annual assessment of the industry, including
such factors as the financial performance of the Company's competitors, the
expansion plans of those competitors, and a competitive analysis of the
Company's annual cash compensation. Should such analysis suggest that the level
of annual cash compensation for the Company's key employees is not competitive,
resulting in their vulnerability to recruitment by other firms, or should
industry trends reveal that recruiting activity will in the upcoming year be
significant, the Committee shall have full power and authority to create a bonus
pool under the Plan for that fiscal year. The bonus pool shall be in such dollar
amount as the Committee deems appropriate and shall be distributed to selected
employees as an incentive for them to remain in the Company's employ.

                        IV. DETERMINATION OF PARTICIPANTS

4.01 Those individuals in the employ of the Company or any subsidiary who are
significant contributors to the continued and future success of the Company's
business shall be eligible to be selected to receive a distribution from one or
more of the bonus pools established over the term of the Plan. The Company's
Chief Executive Officer shall provide the Committee with recommendations each
fiscal year as to the employees who should receive bonus awards under the Plan
for that fiscal year and the amount to be allocated to each designated employee
(alternatively, the Committee, at its sole discretion, may approve a pool of
dollars to be allocated by the CEO among employees rather than specific amounts
for each designated employee). The Committee shall, on the basis of the
competitive compensation analysis undertaken for that fiscal year, have
authority to accept, modify or reject such recommendations. The Committee may
also recommend a bonus distribution under the Plan to the Company's Chief
Executive Officer. The Compensation Committee shall have the ultimate discretion
and authority to determine all participants and bonus amounts.

                           V. PAYMENT OF BONUS AWARDS

5.01 The individual bonus awarded to each employee, if any, shall be paid to
such employee within thirty (30) days after the completion of the audit of the
fiscal year for which that award is made. Generally, a bonus award shall not be
paid to any individual who does not continue in the Company's employ through the
bonus payment date, unless approved by the Compensation Committee or the CEO.
Any payment to which an employee becomes entitled under the Plan shall be made
in the form of a lump sum cash distribution, subject to the Company's collection
of all applicable federal and state income and employment withholding taxes.

5.02 Payments under the Plan will be included in the definition of pay for
purposes of the Company's Savings and Deferred Profit Sharing Plan and Employee
Stock Purchase Plan. Payments under the Plan will not be taken into account in
determining any other benefits of the Company, such as group insurance, etc.

                                      -1-

<PAGE>

                             VI. GENERAL PROVISIONS

6.01 The Plan is effective as of January 31, 2005, and the initial bonus pool
under the Plan will be established for the Company's 2004 fiscal year. The Board
may at any time amend, suspend or terminate the Plan, provided such action is
effected by written resolution. Neither the implementation of the Plan nor any
amendment to the Plan shall require stockholder approval.

6.02 No bonuses awarded under the Plan shall actually be funded, set aside or
otherwise segregated prior to payment. The obligation to pay the bonuses awarded
hereunder shall at all times be an unfunded and unsecured obligation of the
Company. Plan participants shall have the status of general creditors and shall
look solely to the general assets of the Company for the payment of their bonus
awards.

6.03 No Plan participant shall have the right to alienate, pledge or encumber
his/her interest in any bonus award to which he/she may become entitled under
the Plan, and such interest shall not (to the extent permitted by law) be
subject in any way to the claims of the employee's creditors or to attachment,
execution or other process of law.

6.04 Neither the action of the Company in establishing the Plan, nor any action
taken under the Plan by the Committee, nor any provision of the Plan shall be
construed so as to grant any person the right to remain in the employ of the
Company or its subsidiaries for any period of specific duration. Rather, each
employee of the Company or any subsidiary will be employed "at-will," which
means that either such employee or the Company (or subsidiary) may terminate the
employment relationship of that individual at any time for any reason, with or
without cause.

                                      -2-